/*
 * Button.h
 *
 *  Created on: 18.2.2013
 *      Author: Travis
 */

#pragma once

#include "Form.h"

#include "Form.h"
#include <string>
#include "../console/glFont.h"

#define MARKED_SIZE		16
#define CLICK_SIZE		8

namespace Gadgets
{

class Button : public Gadgets::Form
{
public:
	Button(int _width, int _height);
	virtual ~Button();

	virtual void draw();

	virtual void MouseOver(SDL_Event *event, int x, int y);

	void control(SDL_Event *event);
	void MouseClick(SDL_Event *event);

	const std::string& getCaption() const;
	void setCaption(const std::string& caption);

private:
	std::string caption;
	glFont *text;

	// draw bigger when true
	bool click;
};

} /* namespace Gadgets */
